package com.llk.pool.service.impl;

import com.llk.pool.domain.User;
import com.llk.pool.mapper.UserMapper;
import com.llk.pool.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.WebServiceProvider;
import java.util.List;

/**
 * Created by zhou on 2017/5/9.
 */
@Service
public class UserServiceImpl implements UserService {

    private Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> loadUserList(int pageSize, int startRecord, String sortColumn, String sortDir, String searchValue) {


        return userMapper.loadUserList(pageSize, startRecord, sortColumn, sortDir, searchValue);

    }


    @Override
    public int count() {
        return userMapper.count();
    }
}
